<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>登录</title>
	<style type="text/css">
		html{font-size: 12px;}
		fieldset{width: 300px; margin: 0 auto;}
		legend{font-weight: bold; font-size: 14px;}
		.label{float: left; width: 70px; margin-left: 10px;}
		.left{margin-left: 80px;}
		.input{width: 150px;}
		span{color: #666;}
	</style>
	<script type="text/javascript">
	<!--
		function InputCheck(LoginForm) {
			if (LoginForm.username.value == "") {
				alert("请输入用户名！");
				LoginForm.username.focus();
				return(false);
			}
			if (LoginForm.password.value == "") {
				alert("请输入密码！");
				LoginForm.password.focus();
				return(false);
			}
		}
	-->
	</script>
</head>
<body>
	<div>
		<fieldset>
			<legend>用户登录</legend>
			<form name="LoginForm" method="post" action="login.php" onsubmit="return InputCheck(this)">
				<p>
					<label for="username" class="label">用户名：</label>
					<input type="text" name="username" id="username" class="input">
				</p>
				<p>
					<label for="password" class="label">密码：</label>
					<input type="password" name="password" id="password" class="input">
				</p>
				<p>
					<input type="submit" name="submit" value="  确 定  " class="left">
				</p>
			</form>
		</fieldset>
	</div>
</body>
</html>